package com.cictec.middleware.gps.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cictec.middleware.core.entity.WarnMsg;
import com.cictec.middleware.gps.service.feign.MiddlewareDcFeignClient;

@Service
public class WarnMsgService {

	private static Logger logger = LoggerFactory.getLogger(WarnMsgService.class);

	@Autowired
	private MiddlewareDcFeignClient middlewareDcFeignClient;

	/**
	 * 保存、修改报警信息
	 * 
	 * @param warnMsg
	 */
	public void saveWarn(WarnMsg warnMsg) {

		middlewareDcFeignClient.saveWarn(warnMsg);
	}

	/**
	 * 删除指定日期、车辆、类型
	 * 
	 * @param date
	 * @param warnType
	 */
	public void deleteWarn(String date, String warnType, String busUuid) {
		middlewareDcFeignClient.deleteWarn(date, warnType, busUuid);
	}

}
